package com.itheima.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Date;

@Configuration
public class CommonConfig {
    @Bean//可以将方法返回值放入ioc容器
    public Date getDate() {//方法的返回值是要放入的ioc容器的对象
        return new Date();
    }
}
